package com.ygqh.baby.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Document;

import com.ygqh.baby.ao.DataStatus;
import com.ygqh.baby.ao.MessageType;

/**
 * 快捷回复
 * @author Ss
 *
 */
@Document(collection = "ADMIN_QUICK_REPLY")
public class QuickReply implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6738844329920056710L;
	
	private String id;
	
	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 详细内容
	 */
	private String detailContent;

	/**
	 * 消息类型
	 */
	private MessageType messageType = MessageType.Text;

	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 创建人
	 */
	private String createBy;

	/**
	 * 修改时间
	 */
	private Date updateTime;
	
	/**
	 * 修改人
	 */
	private String updateBy;

	/**
	 * 状态
	 */
	private DataStatus status = DataStatus.Valid;
	
	/**
	 * 是否首发
	 */
	private Boolean isFirst = Boolean.FALSE;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status;
	}

	public String getDetailContent() {
		return detailContent;
	}

	public void setDetailContent(String detailContent) {
		this.detailContent = detailContent;
	}

	public MessageType getMessageType() {
		return messageType;
	}

	public void setMessageType(MessageType messageType) {
		this.messageType = messageType;
	}

	public Boolean getIsFirst() {
		return isFirst;
	}

	public void setIsFirst(Boolean isFirst) {
		this.isFirst = isFirst;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	@Override
	public String toString() {
		return "QuickReply [id=" + id + ", title=" + title + ", detailContent=" + detailContent + ", messageType=" + messageType + ", createTime=" + createTime
				+ ", createBy=" + createBy + ", updateTime=" + updateTime + ", updateBy=" + updateBy + ", status=" + status + ", isFirst=" + isFirst + "]";
	}

}
